package com.yyfax.pay.third.model.to.file;

import java.io.Serializable;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 文件系统配置
 * 
 * @author buyi
 * @date 2017-08-30 09:54:27
 * @since v2.0.0
 */
@SuppressWarnings("serial")
public class FileConfigExt implements Serializable {
	/** 文件系统请求地址 */
	private String uploadUrl;

	/** 文件系统下载请求地址 */
	private String downloadUrl;

	/** 回盘文件查询地址 */
	private String queryUrl;

	/** 密钥 */
	private String key;

	/** 业务类型，1-交易，2-报备 */
	private String busiType;

	/** 协议，1-ftp,2-sftp */
	private String protocol;

	/** 远程地址 */
	private String host;
	/** 端口 */
	private int port;

	/** 远程服务账户名 */
	private String name;

	/** 远程服务账户密码 */
	private String password;

	/** 本地更目录 */
	private String localRootDir;
	/** 远程更目录 */
	private String remoteRootDir;

	/** 连接超时 */
	private int connectTimeOut;
	/** 读取超时 */
	private int readTimeOut;

	public String getUploadUrl() {
		return uploadUrl;
	}

	public void setUploadUrl(String uploadUrl) {
		this.uploadUrl = uploadUrl;
	}

	public String getDownloadUrl() {
		return downloadUrl;
	}

	public void setDownloadUrl(String downloadUrl) {
		this.downloadUrl = downloadUrl;
	}

	public String getQueryUrl() {
		return queryUrl;
	}

	public void setQueryUrl(String queryUrl) {
		this.queryUrl = queryUrl;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getBusiType() {
		return busiType;
	}

	public void setBusiType(String busiType) {
		this.busiType = busiType;
	}

	public String getProtocol() {
		return protocol;
	}

	public void setProtocol(String protocol) {
		this.protocol = protocol;
	}

	public String getHost() {
		return host;
	}

	public void setHost(String host) {
		this.host = host;
	}

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getLocalRootDir() {
		return localRootDir;
	}

	public void setLocalRootDir(String localRootDir) {
		this.localRootDir = localRootDir;
	}

	public String getRemoteRootDir() {
		return remoteRootDir;
	}

	public void setRemoteRootDir(String remoteRootDir) {
		this.remoteRootDir = remoteRootDir;
	}

	public int getConnectTimeOut() {
		return connectTimeOut;
	}

	public void setConnectTimeOut(int connectTimeOut) {
		this.connectTimeOut = connectTimeOut;
	}

	public int getReadTimeOut() {
		return readTimeOut;
	}

	public void setReadTimeOut(int readTimeOut) {
		this.readTimeOut = readTimeOut;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
	}
}
